#define _CRT_SECURE_NO_WARNINGS 1
//#include <stdio.h>
//int main()
//{
//	int x[] = { 2,3,4,5,6,7 }, * p = x;
//	int i, s = 0;
//	for (i = 1; i < 6; i++) s += p[i++];
//	printf("%d", s);
//	return 0;
//}

//#include<stdio.h>
//void main()
//{
//	enum Weekday { sun = 7, mon = 1, tue, wed, thu, fri, sat };
//	enum Weekday day = sat;
//	printf("%d\n", day);
//}

#include<stdio.h>
main()
{
	FILE* fp; int i = 10, j = 20, k, n;
	fp = fopen("d_f.dat", "w");
	fprintf(fp, "%d\n", i);
	fprintf(fp, "%d\n", j);
	fclose(fp);
	fp = fopen("d_f.dat", "r");
	fscanf(fp, "%d%d", &k, &n);
	printf("%d %d\n", k, n);
	fclose(fp);
}